import axios,{AxiosInstance} from "axios";

const isDev = process.env.NODE_ENV === "development";
const baseUrl = isDev? "/api":"/";

export const request:AxiosInstance = axios.create({
    baseURL:baseUrl,
    timeout:30000,
    headers:{
        "Content-Type": "application/json;charset=utf-8",
    }
})